#define _GNU_SOURCE
#include "app_pool.h"
#include "log/log.h"
#include <unistd.h>
#include <stdlib.h>
int task_fun(void *arg){
    log_debug("task_fun:tid=%d,arg=%s",gettid(),(char*)arg);
}
int main(){
    app_pool_init(5);
    for(int i=0;i<8;i++){
        char *data=(char*)malloc(10);
        sprintf(data,"%s_%d","abc",i);
        app_pool_registerTask(task_fun,data);
    }
        sleep(2);
        log_debug("main exit");
        return 0;
}